<template>
	<view class="inner">
		<div class="inner-son">
			<view class="paytitle">买入金额</view>
			<view class="pay-input">
				<input type="number" name="" id="" placeholder="50000元起购" placeholder-style="color:#CCCCCC;font-size:40rpx;"  value="" />
			</view>
			<view class="pay-date">
				<text class="pay-text">{{str}}</text>(明日)开始计算收益
			</view>
		</div>
		<view class="inner-son2">
			<view class="inner-son-item1"></view>
			<view class="inner-son-item2">只需三步即可领取收益</view>
			<view class="inner-son-item3"></view>
		</view>
		<view class="card">
			<view class="card-item">
				<view>
					<img src="../../static/image/earnings/yes.png" >
				</view>
				<view class="card-itemtext">
					风险测评
				</view>
			</view>
			<view class="card-item">
				<view>
					<img src="../../static/image/earnings/bankcard.png" >
				</view>
				<view class="card-itemtext">
					风险测评
				</view>
			</view>
			<view class="card-item">
				<view>
					<img src="../../static/image/earnings/idcard.png" >
				</view>
				<view class="card-itemtext">
					风险测评
				</view>
			</view>
		</view>
		<view class="agreement">
			<view>
				<checkbox value="cb" class="ck" :checked="type" @click="checkType" />
			</view>
			<view class="agreement-text">
				基金销售服务由宇宁基金提供，本人已阅读并同意该产品的基金合同，招募说明书，产品规则，信息披露材料及<text class="text2">相关协议</text>，充分了解产品的风险特性，并自愿承担相关投资风险
			</view>
			<view></view>
		</view>
		<view class="btn">
			立即购买
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				str:'',
				type:false
			}
		},
		methods:{
			checkType(e){
				this.type = !this.type;
				console.log(this.type)
			}
		},
		created() {
			const dt = new Date()
			const m = dt.getMonth()+1;
			const d = dt.getDate();
			if(m < 10){
				var mon = '0' + m+'月';
			}
			this.str = mon + d + '日'
			
			
		}
	}
</script>

<style>
	.inner{
		background-color: #F8F8F8;
		height: 100vh;
	}
	.inner-son{
		background-color: #FFFFFF;
		padding-bottom: 20rpx;
	}
	.paytitle{
		color: #CCCCCC;
		font-size: 30rpx;
		padding: 36rpx 0rpx 0rpx 22rpx;
		background-color: #FFFFFF;
	}
	.pay-input{
		padding: 36rpx 0rpx 0rpx 22rpx;
		height: 80rpx;
		line-height: 80rpx;
	
	}
	.pay-date{
		width: 700rpx;
		background-color: #fff1ec;
		margin: 0 auto;
		height: 68rpx;
		line-height: 68rpx;
		font-size: 28rpx;
		padding-left: 20rpx;
	}
	.pay-text{
		color: #ff7f50;
	}
	.inner-son2{
		display: flex;
		justify-content: space-evenly;
		align-items: center;
		margin-top: 40rpx;
	}
	.inner-son-item1,.inner-son-item3{
		width: 25%;
		height: 0rpx;
		border: 1px solid #CCCCCC;
		
	}
	.inner-son-item2{
		font-size: 25rpx;
		color: #636363;
	}
	.card{
		display: flex;
		justify-content: space-evenly;
	}
	.card-item{
		text-align: center;
		margin-top: 60rpx;
	}
	.card-item image{
		width: 111rpx;
		height: 71rpx;
	}
	.card-itemtext{
		color: #adadadd;
		font-size: 28rpx;
		
	}
	.agreement{
		width: 710rpx;
		
		display: flex;
		margin: 0 auto;
		margin-top: 540rpx;
		justify-content: space-evenly;
		font-size: 28rpx;
		color: #808080;
	}
	.text2{
		color: #000000;
	}
	.btn{
		background-color: #3476f1;
		text-align: center;
		height: 86rpx;
		line-height: 86rpx;
		margin-top: 68rpx;
		color: white;
		font-size: 28rpx;
	}
</style>
